package bosque.unc.ayuda;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.SystemColor;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.UIManager;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;

import java.awt.Toolkit;
import java.awt.Font;

import javax.swing.JTextArea;

import bosque.unc.enumerations.Ayuda;

public class PuertoSerieAyuda extends JFrame {

	private JPanel contentPane;
	private JScrollPane scroll;
	private JScrollPane scroll2;
	private JTextArea textAreaPuertoSerie;
	private JTextArea textAreaPalpador;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try
				{
					System.out.println("Look and Fell: " + UIManager.getSystemLookAndFeelClassName());
					UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
				}
				catch (Exception ex)
				{
					System.out.println("Failed loading L&F: ");
					System.out.println(ex);
				}
				
				try {
					PuertoSerieAyuda frame = new PuertoSerieAyuda();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public PuertoSerieAyuda() {
		setIconImage(Toolkit.getDefaultToolkit().getImage("D:\\WorkTesis\\Scoba\\src\\bosque\\unc\\gui\\resources\\ayuda.png"));
		setTitle("Pantalla de ayuda para el puerto serie");
		//setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 739, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblPanelPuertoSerie = new JLabel("Panel Puerto Serie");
		lblPanelPuertoSerie.setFont(new Font("Arial", Font.BOLD, 13));
		lblPanelPuertoSerie.setBounds(10, 23, 174, 14);
		contentPane.add(lblPanelPuertoSerie);
		
		JLabel lblPanelPalpador = new JLabel("Panel Palpador");
		lblPanelPalpador.setFont(new Font("Arial", Font.BOLD, 13));
		lblPanelPalpador.setBounds(10, 138, 150, 14);
		contentPane.add(lblPanelPalpador);
		
		textAreaPuertoSerie = new JTextArea();
		textAreaPuertoSerie.setEditable(false);
		textAreaPuertoSerie.setBackground(SystemColor.control);
		textAreaPuertoSerie.setText(Ayuda.AYUDA_PANTALLA_PUERTOSERIE_SERIE.getMsg());
		scroll = new JScrollPane(textAreaPuertoSerie);
		scroll.setBounds(10, 45, 690, 82);
		contentPane.add(scroll);
		
		textAreaPalpador = new JTextArea();
		textAreaPalpador.setEditable(false);
		textAreaPalpador.setBackground(SystemColor.control);
		textAreaPalpador.setText(Ayuda.AYUDA_PANTALLA_PUERTOSERIE_PALPADOR.getMsg());
		scroll2 = new JScrollPane(textAreaPalpador);
		scroll2.setBounds(10, 163, 690, 88);
		contentPane.add(scroll2);
	}
}
